GtkAllocation *new_start_allocation);
static void toolbar_content_get_start_allocation (ToolbarContent *content,
GtkAllocation *start_allocation);
-static gboolean toolbar_content_get_expand (ToolbarContent *content);
+static gboolean toolbar_content_get_expand (ToolbarContent *content,
+ GtkOrientation orientation);
static void toolbar_content_set_goal_allocation (ToolbarContent *content,
GtkAllocation *allocation);
static void toolbar_content_set_child_visible (ToolbarContent *content,
{
ToolbarContent *content = list->data;
- if (toolbar_content_get_expand (content) && new_states[i] == NORMAL)
+ if (toolbar_content_get_expand (content, priv->orientation) && new_states[i] == NORMAL)
n_expand_items++;
}
{
ToolbarContent *content = list->data;
- if (toolbar_content_get_expand (content) && new_states[i] == NORMAL)
+ if (toolbar_content_get_expand (content, priv->orientation) && new_states[i] == NORMAL)
{
gint extra = size / n_expand_items;
if (size % n_expand_items != 0)
}
static gboolean
-toolbar_content_get_expand (ToolbarContent *content)
+toolbar_content_get_expand (ToolbarContent *content, GtkOrientation orientation)
{
if (!content->disappearing &&
- gtk_tool_item_get_expand (content->item))
+ (gtk_tool_item_get_expand (content->item) || gtk_widget_compute_expand (GTK_WIDGET (content->item), orientation)))
return TRUE;
return FALSE;